package com.kmxd.ams.infra.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 字典多版本表
 *
 * @author ZuoLG
 * @since 2022-10-09
 */
@Data
@TableName("jy_sys_dict_set")
public class SysDictSet implements Serializable {

  private static final long serialVersionUID = 1L;

  /** 主键 */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /** 字典id */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long dictId;

  /** 系列名称 */
  private String name;

  /** 系列标识 */
  private String code;

  /** 排序 */
  @JsonSerialize(using = ToStringSerializer.class)
  private Integer sort;

  /** 创建时间 */
  @TableField(fill = FieldFill.INSERT)
  private Date createTime;

  /** 创建人 */
  @TableField(fill = FieldFill.INSERT)
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createBy;

  /** 更新时间 */
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private Date updateTime;

  /** 更新人 */
  @TableField(fill = FieldFill.INSERT_UPDATE)
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateBy;

  /** 备注 */
  private String remarks;
}
